<!DOCTYPE html>
<html xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <title>展会</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-8">
                <#if shiro.hasPermission("noc:nocrepay:update")>
                <input type="text" class="form-control" style="cursor:pointer;width: 120px;float: left;" v-model="deptName" @click="deptTree" readonly="readonly" placeholder="所属部门"/>
                </#if>
                <select class="form-control" style="width: 120px;float: left" v-model="templateId" placeholder="展会" @change="">
                    <option value="">请选择展会</option>
                    <option v-for="option in templates" v-bind:value="option.id">
                        {{ option.template }}
                    </option>
                </select>
                <select class="form-control" style="width: 120px;float: left" v-model="ly" placeholder="来源" @change="">
                    <option value="">请选择来源</option>
                    <option v-for="option in lys" v-bind:value="option.ly">
                        {{ option.remark }}
                    </option>
                </select>
                <input autocomplete="off" id="startDate" class="form-control" style="width: 120px;float: left;"  v-model="startDate" placeholder="开始时间">&nbsp;
                <input autocomplete="off" id="endDate" class="form-control" style="width: 120px;float: left;" v-model="endDate"  placeholder="结束时间">&nbsp;
            </div>
            <a class="btn btn-primary" @click="query">查询</a>
            <label class="tlFontSize">预登记观众：<label>{{count.personCount}}</label> &nbsp;&nbsp; 预登记企业：<label>{{count.companyCount}}</label></label>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">展会名称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="nocReceipt.ly" placeholder="展会名称"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="nocReceipt.personCount" placeholder=""/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="nocReceipt.companyCount" placeholder=""/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<!-- 选择部门 -->
<div id="deptLayer" style="display: none;padding:10px;">
    <ul id="deptTree" class="ztree"></ul>
</div>

<script src="${request.contextPath}/statics/plugins/layui/laydate/laydate.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/js/modules/noc/nocreceipt.js?_${.now?long}"></script>


</body>
</html>